<script setup lang="ts">
import ByButton from "./ByButton.vue";

defineProps<{
  title?: string;

  to?: string;
}>();
</script>

<template>
  <view class="pb-4 flex-center flex-col">
    <image src="/static/svg/empty.svg" class="w-[200px]" mode="widthFix" />
    <view class="my-2 text-dark">{{ title || "暂无数据" }}</view>

    <ByButton :to="to" class="mt-6" v-if="to">去登录</ByButton>
  </view>
</template>
